/*
package com.tongcao.cn.service.jenkins;

import com.offbytwo.jenkins.JenkinsServer;
import org.springframework.stereotype.Service;

import java.net.URI;
import java.net.URISyntaxException;

*/
/**
 * @author:tongcao
 * @since:2019/8/5 14:30
 * Description:
 *//*

@Service()
public class JenkinsService extends AbstractJenkinsService {

    private JenkinsServer jenkinsServer;

    public JenkinsService() {
        try {
            final String userId = JenkinsServerEnum.JENKINS_NEW.getUser();

            String userPassword = JenkinsServerEnum.JENKINS_NEW.getPassword();
            String jenkinsUrl = JenkinsServerEnum.JENKINS_NEW.getUrl();
            jenkinsServer = new JenkinsServer(new URI(jenkinsUrl), userId, userPassword);
        } catch (URISyntaxException e) {
            throw new RuntimeException(e);
        }
    }

    */
/**
     * 子类实现
     *
     * @return
     *//*

    @Override
    public JenkinsServer getJenkinsServer() {
        return jenkinsServer;
    }
}*/
